projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ea9094
)
tools/babl-verify: print the substeps of chosen paths
author
Øyvind Kolås
<pippin@gimp.org>
Thu, 15 Dec 2016 23:16:42 +0000
(
00:16
+0100)
committer
Øyvind Kolås
<pippin@gimp.org>
Thu, 15 Dec 2016 23:16:42 +0000
(
00:16
+0100)
tools/babl-verify.c
patch
|
blob
|
history
diff --git
a/tools/babl-verify.c
b/tools/babl-verify.c
index 83b1620f4ac2d81e84cce74b6f650a84eb97681e..5a1a44717b98686921c3728886bffb511a846352 100644
(file)
--- a/
tools/babl-verify.c
+++ b/
tools/babl-verify.c
@@
-32,10
+32,15
@@
int main (int argc, char **argv)
{
case BABL_FISH:
fprintf (stderr, "%s\n", babl_get_name (fish));
-
break;
+ break;
case BABL_FISH_PATH:
fprintf (stderr, "chosen %s to %s: steps: %i error: %f cost: %f\n", argv[1], argv[2], fish->fish_path.conversion_list->count, fish->fish.error, fish->fish_path.cost);
- break;
+ for (int i = 0; i < fish->fish_path.conversion_list->count; i++)
+ {
+ fprintf (stderr, "\t%s\n",
+ babl_get_name(fish->fish_path.conversion_list->items[i] ));
+ }
+ break;
}